package com.design_pattern.simpleFactory;

public class SimpleFactory {
    public Service getInstance(String type) {
        if ("A".equals(type)) {
            return new ServerA();
        } else {
            return new ServerB();
        }
    }
}
